package chaoyi.kuo.classes

class SimplyGreeter {
	val greeting = "Hello, World"
	var greeting1 = 1
	private var greeting2 = true
	def greet() = println(greeting)
	def greet1() = println(greeting1)
	
	// ": Unit", 可不寫 
	/*
	def greet2(v: Boolean): Unit = {  
		greeting2 = false
	}
	*/
	def greet2(v: Boolean) { greeting2 = false }
	def printGreet2() = println(greeting2)
}


